//
//  RCTTools.m
//  demo1
//
//  Created by A on 2023/3/6.
//

#import "RCTTools.h"
#import "ALtimeterManager.h"

@implementation RCTTools

RCT_EXPORT_MODULE();
+ (BOOL)requiresMainQueueSetup {
  return YES;
}

RCT_EXPORT_METHOD(requestPressure:(RCTResponseSenderBlock) callback){
  [[ALtimeterManager sharedManager] startMonitorWithCallback:^(NSDictionary *result) {
    callback(@[result]);
  }];
}

@end
